package com.example.tacocloud.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@Data
public class Taco {
    @Size(min=1, message="You must choose at least 1 ingredient")
    private List<Ingredient> ingredients;

    @NotNull
    @Size(min=5,  message="Name must be at least 5 characters long")
    private String name;

    private Long id;
    private Date createdAt;
}
